#ifndef __ENCODER_H_
#define __ENCODER_H_

#include "empty.h"


#define ENCODER_Pin10   		DL_GPIO_PIN_8
#define ENCODER_Pin11   		DL_GPIO_PIN_9
#define ENCODER_Port10  		GPIOA
#define ENCODER_Port11  		GPIOA

#define ENCODER_Pin20   		DL_GPIO_PIN_13
#define ENCODER_Pin21   		DL_GPIO_PIN_14
#define ENCODER_Port20  		GPIOA
#define ENCODER_Port21  		GPIOA


typedef struct {
    int count;
	int speed;
}	Encoder_type;


int ENCODER_Calc_v(int encoderCount, int timer_count);


#endif 